home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / shells / zsh-3.0-p / zsh-3 / zsh-3.0-pre3 / Etc / NEWS < prev   
Text File  |  1996-07-14  |  5KB  |  128 lines

  1. New features in zsh version 3.0
  2.  
  3. !, {, } and [[ are now reserved words.  This introcuces an
  4. incompatibility.  Things like [[-z $foo]] or {foo} no longer works.
  5. [[ -z $foo ]] and { foo } should be used instead.
  6.  
  7. HOSTTYPE special parameter is removed.  The new OSTYPE, MACHTYPE and
  8. VENDOR parameters should be used instead.
  9.  
  10. exec now saves the history in interactive shells.  If you do not like this
  11. behaviour you can alias exec to 'unset HISTFILE ; exec'.
  12.  
  13. ${~spec}, ${=spec} and ${^spec} used to toggle the effect of
  14. globsubst/shwordsplit/rcexpandparam.  Now these force the corresponding
  15. option. ~, = or ^ can be doubled to force the relevant option off for the
  16. substitution.
  17.  
  18. Explicitely requested word splitting like ${=spec} or ${(s:delim:)spec}
  19. will be executed even if the substitution is double quoted.
  20.  
  21. The right-hand side of assignments are no longer globbed by default hence
  22. assignment foo=* will assign '*' as a value of foo.  Use the foo=( * )
  23. array assignment syntax to get the old behaviour.  Alternatively the
  24. GLOB_ASSIGN can be set to emulate the old behaviour but the usage of this
  25. option is strongly discouraged and this optiom may be completely removed in
  26. the future.
  27.  
  28. When foo is an array parameter ${#foo} will always return the length of the
  29. array even if the substitution is double quoted.  ${(c)#foo} should be used
  30. to get back the old behaviour.
  31.  
  32. When the prompt_subst option is set prompts are fully expanded using
  33. parameter expansion, command substitution and arithmetic expansion.
  34. In 2.5 backquote substitution was not performed in the prompts so this
  35. cange might cause problems in some startup scripts if ` is used literaly
  36. in prompts.
  37.  
  38. history substitution is now not performed if the history escape caracter
  39. appears in a single-quoted string.  This may break some interactive shell
  40. functions which use \! in single-quoted strings.
  41.  
  42. The UID, EUID, GID, EGID parameters can be assigned now. The assignment
  43. executes the setuid(), seteuid(), setgid(), setegid() respectively.  On
  44. systems where setuid and seteuid is not supported these functions are
  45. emulated using setreuid which may result in a different behaviour.
  46.  
  47. Assigning the USERNAME parameter will call setuid(uid) where uid is the
  48. user id of the specified user.
  49.  
  50. The privileged (-p) option is automatically set on invocation if euid != uid
  51. or egid != gid.  If this option is set no user startup files are sourced.
  52. The shell will drop privileges when thisoption is unset.
  53.  
  54. The =number substitution for accessing the directory stack is changed to
  55. ~number to allow =command substitution when a command name begins with a 
  56. digit.
  57.  
  58. <> is a redirection operator which opens the standard input for both
  59. reading and writing.  To match a number use <->.
  60.  
  61. Option letters -1 and -C for PRINT_EXIT_VALUE and NO_CLOBBER are swapped:
  62. `set -C' sets noclobber and `set -1' sets PRINT_EXIT_VALUE.
  63.  
  64. AUTO_PUSHD behaviour is changed.  Now cd without arguments will always go
  65. to the $HOME directory even if AUTO_PUSHD is set and PUSHD_TO_HOME is not
  66. set.  If you prefered the old behaviour you can alias cd to pushd.
  67.  
  68. IFS word splitting with SH_WORD_SPLIT and the splitting of the input in the
  69. read builtin has changed in cases when IFS contains characters other than
  70. <space>, <tab>, <newline>.  See the description of IFS in the zshparam
  71. manual page for more details.
  72.  
  73.  
  74. New features in zsh version 2.5
  75.  
  76. Greatly expanded completion possibilities.  Programmable completion
  77. allows detailed control over what arguments of what commands can be
  78. completed to what.  See dots/zcomp in the distribution for examples.
  79.  
  80. Expand filenames with ~ and = on the right hand side of parameter
  81. assignments.  New option MAGIC_EQUAL_SUBST to do it in all
  82. identifier=expression arguments.
  83.  
  84. ${+name} becomes 1 or 0 if name is set or unset.  ${~spec} toggles
  85. GLOB_SUBST in substitution.  Parameter substitution takes lots
  86. of flags in the format ${(flags)name}.
  87.  
  88. New glob qualifiers for block/character special files, times in glob
  89. qualifiers can be in months, weeks, days, hours, minutes.  Qualifiers can
  90. work on links or on what they point to.  Qualifiers separated by commas
  91. are or-ed.
  92.  
  93. New parameter substitution modifiers (fFwW) to repeat actions.  New
  94. option CSH_JUNKIE_HISTORY.
  95.  
  96. New line editor functions history-beginning-search-backward,
  97. history-beginning-search-forward, expand-or-complete-prefix, push-input,
  98. push-line-or-edit.
  99.  
  100. Assign to part of a string, use qualifiers on string subscription with
  101. $foo[(qual)2,5]
  102.  
  103. New parameters: EGID, EUID, KEYTIMEOUT
  104.  
  105. New prompt escape sequence %_ to get constructs like for and while in
  106. the secondary prompt.  %E in prompt clears to end of screen.
  107.  
  108. Conditional expressions in PROMPT and WATCHFMT.
  109.  
  110. New options ALWAYS_LAST_PROMPT, ALWAYS_TO_END, AUTO_PARAM_KEYS,
  111. COMPLETE_ALIASES, COMPLETE_IN_WORD, CSH_JUNKIE_HISTORY, GLOB_SUBST,
  112. LIST_AMBIGOUS, MAGIC_EQUAL_SUBST, NO_FLOW_CONTROL, PROMPT_SUBST
  113.  
  114. New option -m to many builtins makes arguments subject to pattern
  115. matching.
  116.  
  117. Bindkey can now bind both key sequences and prefixes of those.  You can
  118. for example bind ESC and function keys sending ESC sequences.
  119.  
  120. Additional options to read builtin to use in functions called by
  121. completion.
  122.  
  123. New options to print to sort arguments and print them in columns.
  124.  
  125. Some additional resource limits can be specified.
  126.  
  127. Some editor functions now work in the minibuffer.
  128.